package chalmers.game.subterranean.model.world.squares.blocks.digblocks;

import chalmers.game.subterranean.util.Resource;
import chalmers.game.subterranean.util.BlockType;
import chalmers.game.subterranean.util.BlockType.Dig;

/**
 * This class represents the type of Square the player can walk through without colliding.
 * 
 * @author TH
 */
public class Air extends DigBlock {

  private static final BlockType type = new BlockType(Dig.AIR);

  private static Air instance;

  public Air() {
    super.durability = 0;
  }

  @Override
  public String toString() {
    return " ";
  }

  @Override
  public Resource handleDig(double dmg) {
    return null;
  }

  @Override
  public boolean handlePressAgainst() {
    return true;
  }

  @Override
  public Resource getResource() {
    throw new UnsupportedOperationException("Can't have an Air block in inventory");
  }

  @Override
  public BlockType handleGetType() {
    return type;
  }
}
